import { http } from '@/utils/request.js'

const customerVisitRecordService = {
  list: (params) => {
    return http.get('/system/customerVisitRecord/list', params)
  },
  HomeTimeVisitRecordList(data) {
    return http.post('/system/customerVisitRecord/getHomeTimeVisitRecordList', data)
  },
  add: (data) => {
    return http.post('/system/customerVisitRecord', data)
  },
  edit: (data) => {
    return http.put('/system/customerVisitRecord', data)
  },
  delete: (id) => {
    return http.delete(`/system/customerVisitRecord/${id}`)
  },
  postDetail: (data) => {
    return http.post(`/system/customerVisitRecord`, data)
  },
  updateVisitStatus: (data) => {
    return http.put(`/system/customerVisitRecord/updateVisitStatus/${data}`)
  },
  updateVisitRecord: (data) => {
    console.log(data)
    return http.put(`/system/customerVisitRecord/updateVisitRecord/${data}`)
  }
}
export default customerVisitRecordService
